package com.wsd.music.service.imp;

import com.wsd.music.mapper.AdminMapper;
import com.wsd.music.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 管理员Service实现类
 */
@Service
public class AdminServiceImp implements AdminService {

    @Resource
    private AdminMapper mapper;

    /**
     * 验证密码是否正确
     *
     * @param username
     * @param password
     * @return boolean
     */
    @Override
    public boolean verifyPassword(String username, String password) {
        return mapper.verifyPassword(username, password) > 0;
    }
}
